package com.biboheart.adapter.express.support;

import com.biboheart.adapter.express.actuator.GenericActuator;
import com.biboheart.adapter.support.utils.ObjectTypeUtils;

final class ConcatActuator implements GenericActuator {
    @Override
    public Object execute(Object source, Object... args) {
        StringBuilder sb = new StringBuilder(null == source ? "" : String.valueOf(source));
        for (Object s : args) {
            sb.append(ObjectTypeUtils.convertType(s, String.class));
        }
        return sb.toString();
    }
}
